package com.wbl.train.business.controller.admin;

import com.wbl.train.common.utils.RedisUtil;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

/**
 * Author: 王博纶
 * Date: 2024/2/14 15:51
 * FileName: TestController
 * Description: 测试用的controller
 */
@RestController
@RequestMapping("/admin/test")
public class TestController {

    @Autowired
    private RedisUtil redisUtil;
    @GetMapping("/hello")
    public String hello(){
        redisUtil.setEx("123","hhhhhh",1000, TimeUnit.MINUTES);
        return "HELLO";
    }
}
